package com.forever7776.life.remote.common.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 等级枚举
 *
 * @author kz
 * @date 2018-01-22
 */
public class LevelEnum {

    public static final Map<Integer, String> map = new HashMap<Integer, String>();

    public enum NUM {
        first(1, "父级菜单"),
        second(2, "子菜单");

        private Integer code;
        private String desc;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        NUM(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }
    }

    static {
        for (NUM n : NUM.values()) {
            map.put(n.code, n.desc);
        }
    }

}
